package top.luoyuanxiang.mqtt.kafka;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * Kafka消费者
 *
 * @author luoyuanxiang
 */
@Component
public class KafkaConsumer {
    @KafkaListener(topics = "test-topic")
    public void consume(String message) {
        System.out.println("Received message: " + message);
    }
}
